/**
 ***********************************************************************
 * Program name: EmailSenderAuthenticator.java<br>
 * Program description: TODO<br>
 * Author: sugen<br>
 * Revision history:1.0<br>
 * <br>
 * Description of Change	Programmer		Date<br>
 * ---------------------    ----------      ----<br>
 * Initial creation			Su Gen		   2011-3-9 <br>
 * <br>
 * Copyright (c) 2011 by SUGEN ALL RIGHTS RESERVED<br>
 ************************************************************************
 */
package com.mail;

import javax.mail.Authenticator;
import javax.mail.PasswordAuthentication;

public class EmailSenderAuthenticator extends Authenticator {
	private String username;
	private String password; 
	public EmailSenderAuthenticator(String username,String password) {
		super();
		this.username = username; 
		this.password = password; 
    }
	protected PasswordAuthentication getPasswordAuthentication() { 
		return new PasswordAuthentication(username, password); 
	}
}